Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

Previous | Chapter Top | Chapter Contents | Next |

Uncompressed yuv2

The yuv2 stream is encoded in a series of four-byte packets. Each packet represents two adjacent pixels on the same scan line. The bytes within each packet are ordered as follows:

     y0 u y1 v

y0 is the luminance value for the left pixel; y1 the luminance for the right pixel. u and v are chromatic values that are shared by both pixels. The conversion into RGB space is represented by the following equations:

r = 1.402 * v + y + .5

g = y - .7143 * v - .3437 * u + .5

b = 1.77 * u + y + .5

The r , g , and b values range from 0 to 255.


© 1997 Apple Computer, Inc.

Previous | Chapter Top | Chapter Contents | Next